.class public final Llt/noframe/gpsfarmguide/import_fields/imports/ImportFieldsActivity;
.super Landroidx/appcompat/app/AppCompatActivity;
.source "ImportFieldsActivity.kt"

# interfaces
.implements Llt/noframe/gpsfarmguide/import_fields/imports/ImportFieldsViewInterface;


# annotations
.annotation system Ldalvik/annotation/MemberClasses;
    value = {
        Llt/noframe/gpsfarmguide/import_fields/imports/ImportFieldsActivity$Companion;
    }
.end annotation


# static fields
.field public static final Companion:Llt/noframe/gpsfarmguide/import_fields/imports/ImportFieldsActivity$Companion;


# instance fields
.field public appbar:Landroid/view/View;

.field public bottomBar:Landroid/view/View;

.field public mBottomInsetView:Llt/noframe/gpsfarmguide/utils/CustomHeightView;

.field public mErrorButtonRetry:Landroid/widget/TextView;

.field public mErrorText:Landroid/widget/TextView;

.field public mFieldsAdapter:Llt/noframe/gpsfarmguide/import_fields/imports/ImportFieldsRecyclerAdapter;

.field public mPresenter:Llt/noframe/gpsfarmguide/import_fields/imports/ImportFieldsPresenter;

.field private mProgressDialog:Llt/noframe/gpsfarmguide/import_fields/ProgressDialog;

.field public mRecyclerView:Landroidx/recyclerview/widget/RecyclerView;

.field public mRetryLayout:Landroid/view/View;

.field public mSaveButton:Landroid/widget/TextView;

.field public mToolbar:Landroidx/appcompat/widget/Toolbar;

.field public mTopInsetView:Llt/noframe/gpsfarmguide/utils/CustomHeightView;


# direct methods
.method static constructor <clinit>()V
    .locals 2

    new-instance v0, Llt/noframe/gpsfarmguide/import_fields/imports/ImportFieldsActivity$Companion;

    const/4 v1, 0x0

    invoke-direct {v0, v1}, Llt/noframe/gpsfarmguide/import_fields/imports/ImportFieldsActivity$Companion;-><init>(Lkotlin/jvm/internal/DefaultConstructorMarker;)V

    sput-object v0, Llt/noframe/gpsfarmguide/import_fields/imports/ImportFieldsActivity;->Companion:Llt/noframe/gpsfarmguide/import_fields/imports/ImportFieldsActivity$Companion;

    return-void
.end method

.method public constructor <init>()V
    .locals 0

    .line 23
    invoke-direct {p0}, Landroidx/appcompat/app/AppCompatActivity;-><init>()V

    return-void
.end method


# virtual methods
.method public dismissImportIngDialog()V
    .locals 1

    .line 254
    iget-object v0, p0, Llt/noframe/gpsfarmguide/import_fields/imports/ImportFieldsActivity;->mProgressDialog:Llt/noframe/gpsfarmguide/import_fields/ProgressDialog;

    if-eqz v0, :cond_0

    invoke-virtual {v0}, Llt/noframe/gpsfarmguide/import_fields/ProgressDialog;->dismissDialog()V

    :cond_0
    return-void
.end method

.method public dismissSavingDialog()V
    .locals 1

    .line 263
    iget-object v0, p0, Llt/noframe/gpsfarmguide/import_fields/imports/ImportFieldsActivity;->mProgressDialog:Llt/noframe/gpsfarmguide/import_fields/ProgressDialog;

    if-eqz v0, :cond_0

    invoke-virtual {v0}, Llt/noframe/gpsfarmguide/import_fields/ProgressDialog;->dismissDialog()V

    :cond_0
    return-void
.end method

.method public displayFieldsList(Ljava/util/List;)V
    .locals 1
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Ljava/util/List<",
            "Llt/noframe/gpsfarmguide/import_fields/imports/ImportFieldModel;",
            ">;)V"
        }
    .end annotation

    .line 189
    iget-object v0, p0, Llt/noframe/gpsfarmguide/import_fields/imports/ImportFieldsActivity;->mFieldsAdapter:Llt/noframe/gpsfarmguide/import_fields/imports/ImportFieldsRecyclerAdapter;

    if-eqz v0, :cond_0

    invoke-virtual {v0, p1}, Llt/noframe/gpsfarmguide/import_fields/imports/ImportFieldsRecyclerAdapter;->setItems(Ljava/util/List;)V

    return-void

    :cond_0
    const-string p1, "mFieldsAdapter"

    invoke-static {p1}, Lkotlin/jvm/internal/Intrinsics;->throwUninitializedPropertyAccessException(Ljava/lang/String;)V

    const/4 p1, 0x0

    throw p1
.end method

.method public finishActivityActionCancel()V
    .locals 0

    .line 207
    invoke-virtual {p0}, Landroid/app/Activity;->finish()V

    return-void
.end method

.method public finishActivitySuccess()V
    .locals 2

    .line 242
    new-instance v0, Landroid/content/Intent;

    invoke-direct {v0}, Landroid/content/Intent;-><init>()V

    const/4 v1, -0x1

    .line 243
    invoke-virtual {p0, v1, v0}, Landroid/app/Activity;->setResult(ILandroid/content/Intent;)V

    .line 244
    invoke-virtual {p0}, Landroid/app/Activity;->finish()V

    return-void
.end method

.method public final getAppbar()Landroid/view/View;
    .locals 1

    .line 38
    iget-object v0, p0, Llt/noframe/gpsfarmguide/import_fields/imports/ImportFieldsActivity;->appbar:Landroid/view/View;

    if-eqz v0, :cond_0

    return-object v0

    :cond_0
    const-string v0, "appbar"

    invoke-static {v0}, Lkotlin/jvm/internal/Intrinsics;->throwUninitializedPropertyAccessException(Ljava/lang/String;)V

    const/4 v0, 0x0

    throw v0
.end method

.method public final getBottomBar()Landroid/view/View;
    .locals 1

    .line 39
    iget-object v0, p0, Llt/noframe/gpsfarmguide/import_fields/imports/ImportFieldsActivity;->bottomBar:Landroid/view/View;

    if-eqz v0, :cond_0

    return-object v0

    :cond_0
    const-string v0, "bottomBar"

    invoke-static {v0}, Lkotlin/jvm/internal/Intrinsics;->throwUninitializedPropertyAccessException(Ljava/lang/String;)V

    const/4 v0, 0x0

    throw v0
.end method

.method public getImportFilePath()Ljava/lang/String;
    .locals 2

    .line 185
    invoke-virtual {p0}, Landroid/app/Activity;->getIntent()Landroid/content/Intent;

    move-result-object v0

    const-string v1, "import_file_path"

    invoke-virtual {v0, v1}, Landroid/content/Intent;->getStringExtra(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    if-eqz v0, :cond_0

    return-object v0

    :cond_0
    new-instance v0, Ljava/lang/IllegalArgumentException;

    const-string v1, ""

    invoke-direct {v0, v1}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V

    throw v0
.end method

.method public final getMFieldsAdapter()Llt/noframe/gpsfarmguide/import_fields/imports/ImportFieldsRecyclerAdapter;
    .locals 1

    .line 33
    iget-object v0, p0, Llt/noframe/gpsfarmguide/import_fields/imports/ImportFieldsActivity;->mFieldsAdapter:Llt/noframe/gpsfarmguide/import_fields/imports/ImportFieldsRecyclerAdapter;

    if-eqz v0, :cond_0

    return-object v0

    :cond_0
    const-string v0, "mFieldsAdapter"

    invoke-static {v0}, Lkotlin/jvm/internal/Intrinsics;->throwUninitializedPropertyAccessException(Ljava/lang/String;)V

    const/4 v0, 0x0

    throw v0
.end method

.method public final getMPresenter()Llt/noframe/gpsfarmguide/import_fields/imports/ImportFieldsPresenter;
    .locals 1

    .line 29
    iget-object v0, p0, Llt/noframe/gpsfarmguide/import_fields/imports/ImportFieldsActivity;->mPresenter:Llt/noframe/gpsfarmguide/import_fields/imports/ImportFieldsPresenter;

    if-eqz v0, :cond_0

    return-object v0

    :cond_0
    const-string v0, "mPresenter"

    invoke-static {v0}, Lkotlin/jvm/internal/Intrinsics;->throwUninitializedPropertyAccessException(Ljava/lang/String;)V

    const/4 v0, 0x0

    throw v0
.end method

.method public final getMRecyclerView()Landroidx/recyclerview/widget/RecyclerView;
    .locals 1

    .line 31
    iget-object v0, p0, Llt/noframe/gpsfarmguide/import_fields/imports/ImportFieldsActivity;->mRecyclerView:Landroidx/recyclerview/widget/RecyclerView;

    if-eqz v0, :cond_0

    return-object v0

    :cond_0
    const-string v0, "mRecyclerView"

    invoke-static {v0}, Lkotlin/jvm/internal/Intrinsics;->throwUninitializedPropertyAccessException(Ljava/lang/String;)V

    const/4 v0, 0x0

    throw v0
.end method

.method public getSelectedFields()Ljava/util/List;
    .locals 2
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "()",
            "Ljava/util/List<",
            "Llt/noframe/gpsfarmguide/import_fields/imports/ImportFieldModel;",
            ">;"
        }
    .end annotation

    .line 219
    iget-object v0, p0, Llt/noframe/gpsfarmguide/import_fields/imports/ImportFieldsActivity;->mFieldsAdapter:Llt/noframe/gpsfarmguide/import_fields/imports/ImportFieldsRecyclerAdapter;

    if-eqz v0, :cond_0

    invoke-virtual {v0}, Llt/noframe/gpsfarmguide/import_fields/imports/ImportFieldsRecyclerAdapter;->getSelectedItems()Ljava/util/List;

    move-result-object v0

    const-string v1, "mFieldsAdapter.selectedItems"

    invoke-static {v0, v1}, Lkotlin/jvm/internal/Intrinsics;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V

    return-object v0

    :cond_0
    const-string v0, "mFieldsAdapter"

    invoke-static {v0}, Lkotlin/jvm/internal/Intrinsics;->throwUninitializedPropertyAccessException(Ljava/lang/String;)V

    const/4 v0, 0x0

    throw v0
.end method

.method public hideTryAgain()V
    .locals 2

    .line 170
    iget-object v0, p0, Llt/noframe/gpsfarmguide/import_fields/imports/ImportFieldsActivity;->mRetryLayout:Landroid/view/View;

    if-eqz v0, :cond_0

    const/16 v1, 0x8

    invoke-virtual {v0, v1}, Landroid/view/View;->setVisibility(I)V

    return-void

    :cond_0
    const-string v0, "mRetryLayout"

    invoke-static {v0}, Lkotlin/jvm/internal/Intrinsics;->throwUninitializedPropertyAccessException(Ljava/lang/String;)V

    const/4 v0, 0x0

    throw v0
.end method

.method protected final onApplyInsets(Landroid/view/WindowInsets;)Landroid/view/WindowInsets;
    .locals 4
    .annotation build Landroid/annotation/TargetApi;
        value = 0x15
    .end annotation

    const-string v0, "insets"

    invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V

    .line 158
    iget-object v0, p0, Llt/noframe/gpsfarmguide/import_fields/imports/ImportFieldsActivity;->mTopInsetView:Llt/noframe/gpsfarmguide/utils/CustomHeightView;

    const/4 v1, 0x0

    if-eqz v0, :cond_4

    invoke-virtual {p1}, Landroid/view/WindowInsets;->getStableInsetTop()I

    move-result v2

    invoke-virtual {v0, v2}, Llt/noframe/gpsfarmguide/utils/CustomHeightView;->setViewHeight(I)V

    .line 159
    iget-object v0, p0, Llt/noframe/gpsfarmguide/import_fields/imports/ImportFieldsActivity;->mBottomInsetView:Llt/noframe/gpsfarmguide/utils/CustomHeightView;

    if-eqz v0, :cond_3

    invoke-virtual {p1}, Landroid/view/WindowInsets;->getStableInsetBottom()I

    move-result v2

    invoke-virtual {v0, v2}, Llt/noframe/gpsfarmguide/utils/CustomHeightView;->setViewHeight(I)V

    .line 160
    iget-object v0, p0, Llt/noframe/gpsfarmguide/import_fields/imports/ImportFieldsActivity;->mRecyclerView:Landroidx/recyclerview/widget/RecyclerView;

    if-eqz v0, :cond_2

    iget-object v2, p0, Llt/noframe/gpsfarmguide/import_fields/imports/ImportFieldsActivity;->appbar:Landroid/view/View;

    if-eqz v2, :cond_1

    invoke-virtual {v2}, Landroid/view/View;->getHeight()I

    move-result v2

    iget-object v3, p0, Llt/noframe/gpsfarmguide/import_fields/imports/ImportFieldsActivity;->bottomBar:Landroid/view/View;

    if-eqz v3, :cond_0

    invoke-virtual {v3}, Landroid/view/View;->getHeight()I

    move-result v1

    const/4 v3, 0x0

    invoke-virtual {v0, v3, v2, v3, v1}, Landroid/view/ViewGroup;->setPadding(IIII)V

    return-object p1

    :cond_0
    const-string p1, "bottomBar"

    invoke-static {p1}, Lkotlin/jvm/internal/Intrinsics;->throwUninitializedPropertyAccessException(Ljava/lang/String;)V

    throw v1

    :cond_1
    const-string p1, "appbar"

    invoke-static {p1}, Lkotlin/jvm/internal/Intrinsics;->throwUninitializedPropertyAccessException(Ljava/lang/String;)V

    throw v1

    :cond_2
    const-string p1, "mRecyclerView"

    invoke-static {p1}, Lkotlin/jvm/internal/Intrinsics;->throwUninitializedPropertyAccessException(Ljava/lang/String;)V

    throw v1

    :cond_3
    const-string p1, "mBottomInsetView"

    .line 159
    invoke-static {p1}, Lkotlin/jvm/internal/Intrinsics;->throwUninitializedPropertyAccessException(Ljava/lang/String;)V

    throw v1

    :cond_4
    const-string p1, "mTopInsetView"

    .line 158
    invoke-static {p1}, Lkotlin/jvm/internal/Intrinsics;->throwUninitializedPropertyAccessException(Ljava/lang/String;)V

    throw v1
.end method

.method public onBackPressed()V
    .locals 1

    .line 153
    iget-object v0, p0, Llt/noframe/gpsfarmguide/import_fields/imports/ImportFieldsActivity;->mPresenter:Llt/noframe/gpsfarmguide/import_fields/imports/ImportFieldsPresenter;

    if-eqz v0, :cond_0

    invoke-virtual {v0}, Llt/noframe/gpsfarmguide/import_fields/imports/ImportFieldsPresenter;->onBackClicked()V

    return-void

    :cond_0
    const-string v0, "mPresenter"

    invoke-static {v0}, Lkotlin/jvm/internal/Intrinsics;->throwUninitializedPropertyAccessException(Ljava/lang/String;)V

    const/4 v0, 0x0

    throw v0
.end method

.method protected onCreate(Landroid/os/Bundle;)V
    .locals 5

    .line 54
    sget v0, Landroid/os/Build$VERSION;->SDK_INT:I

    const/16 v1, 0x15

    if-lt v0, v1, :cond_0

    .line 55
    invoke-virtual {p0}, Landroid/app/Activity;->getWindow()Landroid/view/Window;

    move-result-object v0

    const/16 v2, 0x200

    invoke-virtual {v0, v2}, Landroid/view/Window;->addFlags(I)V

    .line 57
    :cond_0
    invoke-super {p0, p1}, Landroidx/appcompat/app/AppCompatActivity;->onCreate(Landroid/os/Bundle;)V

    .line 58
    new-instance p1, Llt/noframe/gpsfarmguide/import_fields/imports/ImportFieldsPresenter;

    invoke-direct {p1, p0, p0}, Llt/noframe/gpsfarmguide/import_fields/imports/ImportFieldsPresenter;-><init>(Llt/noframe/gpsfarmguide/import_fields/imports/ImportFieldsViewInterface;Landroid/content/Context;)V

    iput-object p1, p0, Llt/noframe/gpsfarmguide/import_fields/imports/ImportFieldsActivity;->mPresenter:Llt/noframe/gpsfarmguide/import_fields/imports/ImportFieldsPresenter;

    const p1, 0x7f0c0023

    .line 59
    invoke-virtual {p0, p1}, Landroidx/appcompat/app/AppCompatActivity;->setContentView(I)V

    const p1, 0x7f0900be

    .line 62
    invoke-virtual {p0, p1}, Landroidx/appcompat/app/AppCompatActivity;->findViewById(I)Landroid/view/View;

    move-result-object p1

    const-string v0, "findViewById(R.id.contentTopInset)"

    invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V

    check-cast p1, Llt/noframe/gpsfarmguide/utils/CustomHeightView;

    iput-object p1, p0, Llt/noframe/gpsfarmguide/import_fields/imports/ImportFieldsActivity;->mTopInsetView:Llt/noframe/gpsfarmguide/utils/CustomHeightView;

    const p1, 0x7f0900bb

    .line 63
    invoke-virtual {p0, p1}, Landroidx/appcompat/app/AppCompatActivity;->findViewById(I)Landroid/view/View;

    move-result-object p1

    const-string v0, "findViewById(R.id.contentBottomInset)"

    invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V

    check-cast p1, Llt/noframe/gpsfarmguide/utils/CustomHeightView;

    iput-object p1, p0, Llt/noframe/gpsfarmguide/import_fields/imports/ImportFieldsActivity;->mBottomInsetView:Llt/noframe/gpsfarmguide/utils/CustomHeightView;

    const p1, 0x7f090107

    .line 65
    invoke-virtual {p0, p1}, Landroidx/appcompat/app/AppCompatActivity;->findViewById(I)Landroid/view/View;

    move-result-object p1

    const-string v0, "findViewById(R.id.fieldsListRecycler)"

    invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V

    check-cast p1, Landroidx/recyclerview/widget/RecyclerView;

    iput-object p1, p0, Llt/noframe/gpsfarmguide/import_fields/imports/ImportFieldsActivity;->mRecyclerView:Landroidx/recyclerview/widget/RecyclerView;

    .line 66
    new-instance p1, Llt/noframe/gpsfarmguide/import_fields/imports/ImportFieldsRecyclerAdapter;

    invoke-direct {p1, p0}, Llt/noframe/gpsfarmguide/import_fields/imports/ImportFieldsRecyclerAdapter;-><init>(Landroid/content/Context;)V

    iput-object p1, p0, Llt/noframe/gpsfarmguide/import_fields/imports/ImportFieldsActivity;->mFieldsAdapter:Llt/noframe/gpsfarmguide/import_fields/imports/ImportFieldsRecyclerAdapter;

    .line 67
    iget-object p1, p0, Llt/noframe/gpsfarmguide/import_fields/imports/ImportFieldsActivity;->mRecyclerView:Landroidx/recyclerview/widget/RecyclerView;

    const-string v0, "mRecyclerView"

    const/4 v2, 0x0

    if-eqz p1, :cond_d

    new-instance v3, Landroidx/recyclerview/widget/LinearLayoutManager;

    invoke-direct {v3, p0}, Landroidx/recyclerview/widget/LinearLayoutManager;-><init>(Landroid/content/Context;)V

    invoke-virtual {p1, v3}, Landroidx/recyclerview/widget/RecyclerView;->setLayoutManager(Landroidx/recyclerview/widget/RecyclerView$LayoutManager;)V

    .line 68
    iget-object p1, p0, Llt/noframe/gpsfarmguide/import_fields/imports/ImportFieldsActivity;->mRecyclerView:Landroidx/recyclerview/widget/RecyclerView;

    if-eqz p1, :cond_c

    iget-object v3, p0, Llt/noframe/gpsfarmguide/import_fields/imports/ImportFieldsActivity;->mFieldsAdapter:Llt/noframe/gpsfarmguide/import_fields/imports/ImportFieldsRecyclerAdapter;

    const-string v4, "mFieldsAdapter"

    if-eqz v3, :cond_b

    invoke-virtual {p1, v3}, Landroidx/recyclerview/widget/RecyclerView;->setAdapter(Landroidx/recyclerview/widget/RecyclerView$Adapter;)V

    .line 69
    iget-object p1, p0, Llt/noframe/gpsfarmguide/import_fields/imports/ImportFieldsActivity;->mFieldsAdapter:Llt/noframe/gpsfarmguide/import_fields/imports/ImportFieldsRecyclerAdapter;

    if-eqz p1, :cond_a

    new-instance v3, Llt/noframe/gpsfarmguide/import_fields/imports/ImportFieldsActivity$onCreate$1;

    invoke-direct {v3, p0}, Llt/noframe/gpsfarmguide/import_fields/imports/ImportFieldsActivity$onCreate$1;-><init>(Llt/noframe/gpsfarmguide/import_fields/imports/ImportFieldsActivity;)V

    invoke-virtual {p1, v3}, Llt/noframe/gpsfarmguide/import_fields/imports/ImportFieldsRecyclerAdapter;->setOnSelectionChangedListener(Llt/noframe/gpsfarmguide/import_fields/imports/ImportFieldsRecyclerAdapter$OnSelectionChangedListener;)V

    const p1, 0x7f090050

    .line 73
    invoke-virtual {p0, p1}, Landroidx/appcompat/app/AppCompatActivity;->findViewById(I)Landroid/view/View;

    move-result-object p1

    const-string v3, "findViewById<View>(R.id.appBar)"

    invoke-static {p1, v3}, Lkotlin/jvm/internal/Intrinsics;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V

    iput-object p1, p0, Llt/noframe/gpsfarmguide/import_fields/imports/ImportFieldsActivity;->appbar:Landroid/view/View;

    const p1, 0x7f090076

    .line 74
    invoke-virtual {p0, p1}, Landroidx/appcompat/app/AppCompatActivity;->findViewById(I)Landroid/view/View;

    move-result-object p1

    const-string v3, "findViewById<View>(R.id.bottomBar)"

    invoke-static {p1, v3}, Lkotlin/jvm/internal/Intrinsics;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V

    iput-object p1, p0, Llt/noframe/gpsfarmguide/import_fields/imports/ImportFieldsActivity;->bottomBar:Landroid/view/View;

    const p1, 0x7f0901e9

    .line 75
    invoke-virtual {p0, p1}, Landroidx/appcompat/app/AppCompatActivity;->findViewById(I)Landroid/view/View;

    move-result-object p1

    const-string v3, "findViewById(R.id.saveBtnTextView)"

    invoke-static {p1, v3}, Lkotlin/jvm/internal/Intrinsics;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V

    check-cast p1, Landroid/widget/TextView;

    iput-object p1, p0, Llt/noframe/gpsfarmguide/import_fields/imports/ImportFieldsActivity;->mSaveButton:Landroid/widget/TextView;

    const p1, 0x7f0901d7

    .line 77
    invoke-virtual {p0, p1}, Landroidx/appcompat/app/AppCompatActivity;->findViewById(I)Landroid/view/View;

    move-result-object p1

    const-string v3, "findViewById(R.id.retryLayout)"

    invoke-static {p1, v3}, Lkotlin/jvm/internal/Intrinsics;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V

    iput-object p1, p0, Llt/noframe/gpsfarmguide/import_fields/imports/ImportFieldsActivity;->mRetryLayout:Landroid/view/View;

    const p1, 0x7f0900ff

    .line 78
    invoke-virtual {p0, p1}, Landroidx/appcompat/app/AppCompatActivity;->findViewById(I)Landroid/view/View;

    move-result-object p1

    const-string v3, "findViewById(R.id.errorText)"

    invoke-static {p1, v3}, Lkotlin/jvm/internal/Intrinsics;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V

    check-cast p1, Landroid/widget/TextView;

    iput-object p1, p0, Llt/noframe/gpsfarmguide/import_fields/imports/ImportFieldsActivity;->mErrorText:Landroid/widget/TextView;

    const p1, 0x7f0900fe

    .line 79
    invoke-virtual {p0, p1}, Landroidx/appcompat/app/AppCompatActivity;->findViewById(I)Landroid/view/View;

    move-result-object p1

    const-string v3, "findViewById(R.id.errorButtonRetry)"

    invoke-static {p1, v3}, Lkotlin/jvm/internal/Intrinsics;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V

    check-cast p1, Landroid/widget/TextView;

    iput-object p1, p0, Llt/noframe/gpsfarmguide/import_fields/imports/ImportFieldsActivity;->mErrorButtonRetry:Landroid/widget/TextView;

    .line 82
    iget-object p1, p0, Llt/noframe/gpsfarmguide/import_fields/imports/ImportFieldsActivity;->mSaveButton:Landroid/widget/TextView;

    if-eqz p1, :cond_9

    new-instance v3, Llt/noframe/gpsfarmguide/import_fields/imports/ImportFieldsActivity$onCreate$2;

    invoke-direct {v3, p0}, Llt/noframe/gpsfarmguide/import_fields/imports/ImportFieldsActivity$onCreate$2;-><init>(Llt/noframe/gpsfarmguide/import_fields/imports/ImportFieldsActivity;)V

    invoke-virtual {p1, v3}, Landroid/widget/TextView;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 86
    iget-object p1, p0, Llt/noframe/gpsfarmguide/import_fields/imports/ImportFieldsActivity;->mErrorButtonRetry:Landroid/widget/TextView;

    if-eqz p1, :cond_8

    new-instance v3, Llt/noframe/gpsfarmguide/import_fields/imports/ImportFieldsActivity$onCreate$3;

    invoke-direct {v3, p0}, Llt/noframe/gpsfarmguide/import_fields/imports/ImportFieldsActivity$onCreate$3;-><init>(Llt/noframe/gpsfarmguide/import_fields/imports/ImportFieldsActivity;)V

    invoke-virtual {p1, v3}, Landroid/widget/TextView;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    const p1, 0x7f090262

    .line 91
    invoke-virtual {p0, p1}, Landroidx/appcompat/app/AppCompatActivity;->findViewById(I)Landroid/view/View;

    move-result-object p1

    const-string v3, "findViewById(R.id.toolbar)"

    invoke-static {p1, v3}, Lkotlin/jvm/internal/Intrinsics;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V

    check-cast p1, Landroidx/appcompat/widget/Toolbar;

    iput-object p1, p0, Llt/noframe/gpsfarmguide/import_fields/imports/ImportFieldsActivity;->mToolbar:Landroidx/appcompat/widget/Toolbar;

    .line 92
    iget-object p1, p0, Llt/noframe/gpsfarmguide/import_fields/imports/ImportFieldsActivity;->mToolbar:Landroidx/appcompat/widget/Toolbar;

    if-eqz p1, :cond_7

    invoke-virtual {p0, p1}, Landroidx/appcompat/app/AppCompatActivity;->setSupportActionBar(Landroidx/appcompat/widget/Toolbar;)V

    .line 94
    invoke-virtual {p0}, Landroidx/appcompat/app/AppCompatActivity;->getSupportActionBar()Landroidx/appcompat/app/ActionBar;

    move-result-object p1

    const/4 v3, 0x1

    if-eqz p1, :cond_1

    invoke-virtual {p1, v3}, Landroidx/appcompat/app/ActionBar;->setHomeButtonEnabled(Z)V

    .line 95
    :cond_1
    invoke-virtual {p0}, Landroidx/appcompat/app/AppCompatActivity;->getSupportActionBar()Landroidx/appcompat/app/ActionBar;

    move-result-object p1

    if-eqz p1, :cond_2

    invoke-virtual {p1, v3}, Landroidx/appcompat/app/ActionBar;->setDisplayHomeAsUpEnabled(Z)V

    .line 96
    :cond_2
    invoke-virtual {p0}, Landroidx/appcompat/app/AppCompatActivity;->getSupportActionBar()Landroidx/appcompat/app/ActionBar;

    move-result-object p1

    if-eqz p1, :cond_3

    const v3, 0x7f0800d3

    invoke-virtual {p1, v3}, Landroidx/appcompat/app/ActionBar;->setHomeAsUpIndicator(I)V

    .line 99
    :cond_3
    sget p1, Landroid/os/Build$VERSION;->SDK_INT:I

    if-lt p1, v1, :cond_4

    .line 100
    invoke-virtual {p0}, Landroid/app/Activity;->getWindow()Landroid/view/Window;

    move-result-object p1

    const-string v1, "window"

    invoke-static {p1, v1}, Lkotlin/jvm/internal/Intrinsics;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V

    invoke-virtual {p1}, Landroid/view/Window;->getDecorView()Landroid/view/View;

    move-result-object p1

    new-instance v1, Llt/noframe/gpsfarmguide/import_fields/imports/ImportFieldsActivity$onCreate$4;

    invoke-direct {v1, p0}, Llt/noframe/gpsfarmguide/import_fields/imports/ImportFieldsActivity$onCreate$4;-><init>(Llt/noframe/gpsfarmguide/import_fields/imports/ImportFieldsActivity;)V

    invoke-virtual {p1, v1}, Landroid/view/View;->setOnApplyWindowInsetsListener(Landroid/view/View$OnApplyWindowInsetsListener;)V

    .line 106
    :cond_4
    iget-object p1, p0, Llt/noframe/gpsfarmguide/import_fields/imports/ImportFieldsActivity;->mRecyclerView:Landroidx/recyclerview/widget/RecyclerView;

    if-eqz p1, :cond_6

    invoke-virtual {p1}, Landroid/view/ViewGroup;->getViewTreeObserver()Landroid/view/ViewTreeObserver;

    move-result-object p1

    new-instance v0, Llt/noframe/gpsfarmguide/import_fields/imports/ImportFieldsActivity$onCreate$5;

    invoke-direct {v0, p0}, Llt/noframe/gpsfarmguide/import_fields/imports/ImportFieldsActivity$onCreate$5;-><init>(Llt/noframe/gpsfarmguide/import_fields/imports/ImportFieldsActivity;)V

    invoke-virtual {p1, v0}, Landroid/view/ViewTreeObserver;->addOnGlobalLayoutListener(Landroid/view/ViewTreeObserver$OnGlobalLayoutListener;)V

    .line 113
    iget-object p1, p0, Llt/noframe/gpsfarmguide/import_fields/imports/ImportFieldsActivity;->mPresenter:Llt/noframe/gpsfarmguide/import_fields/imports/ImportFieldsPresenter;

    if-eqz p1, :cond_5

    invoke-virtual {p1}, Llt/noframe/gpsfarmguide/import_fields/imports/ImportFieldsPresenter;->onViewPrepared()V

    return-void

    :cond_5
    const-string p1, "mPresenter"

    invoke-static {p1}, Lkotlin/jvm/internal/Intrinsics;->throwUninitializedPropertyAccessException(Ljava/lang/String;)V

    throw v2

    .line 106
    :cond_6
    invoke-static {v0}, Lkotlin/jvm/internal/Intrinsics;->throwUninitializedPropertyAccessException(Ljava/lang/String;)V

    throw v2

    :cond_7
    const-string p1, "mToolbar"

    .line 92
    invoke-static {p1}, Lkotlin/jvm/internal/Intrinsics;->throwUninitializedPropertyAccessException(Ljava/lang/String;)V

    throw v2

    :cond_8
    const-string p1, "mErrorButtonRetry"

    .line 86
    invoke-static {p1}, Lkotlin/jvm/internal/Intrinsics;->throwUninitializedPropertyAccessException(Ljava/lang/String;)V

    throw v2

    :cond_9
    const-string p1, "mSaveButton"

    .line 82
    invoke-static {p1}, Lkotlin/jvm/internal/Intrinsics;->throwUninitializedPropertyAccessException(Ljava/lang/String;)V

    throw v2

    .line 69
    :cond_a
    invoke-static {v4}, Lkotlin/jvm/internal/Intrinsics;->throwUninitializedPropertyAccessException(Ljava/lang/String;)V

    throw v2

    .line 68
    :cond_b
    invoke-static {v4}, Lkotlin/jvm/internal/Intrinsics;->throwUninitializedPropertyAccessException(Ljava/lang/String;)V

    throw v2

    :cond_c
    invoke-static {v0}, Lkotlin/jvm/internal/Intrinsics;->throwUninitializedPropertyAccessException(Ljava/lang/String;)V

    throw v2

    .line 67
    :cond_d
    invoke-static {v0}, Lkotlin/jvm/internal/Intrinsics;->throwUninitializedPropertyAccessException(Ljava/lang/String;)V

    throw v2
.end method

.method public onCreateOptionsMenu(Landroid/view/Menu;)Z
    .locals 2

    const-string v0, "menu"

    invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V

    .line 118
    invoke-virtual {p0}, Landroidx/appcompat/app/AppCompatActivity;->getMenuInflater()Landroid/view/MenuInflater;

    move-result-object v0

    const/high16 v1, 0x7f0d0000

    invoke-virtual {v0, v1, p1}, Landroid/view/MenuInflater;->inflate(ILandroid/view/Menu;)V

    const v0, 0x7f09006b

    .line 120
    invoke-interface {p1, v0}, Landroid/view/Menu;->findItem(I)Landroid/view/MenuItem;

    move-result-object v0

    const-string v1, "searchItem"

    .line 121
    invoke-static {v0, v1}, Lkotlin/jvm/internal/Intrinsics;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V

    invoke-interface {v0}, Landroid/view/MenuItem;->getActionView()Landroid/view/View;

    move-result-object v0

    if-eqz v0, :cond_0

    check-cast v0, Landroidx/appcompat/widget/SearchView;

    .line 122
    new-instance v1, Llt/noframe/gpsfarmguide/import_fields/imports/ImportFieldsActivity$onCreateOptionsMenu$1;

    invoke-direct {v1, p0}, Llt/noframe/gpsfarmguide/import_fields/imports/ImportFieldsActivity$onCreateOptionsMenu$1;-><init>(Llt/noframe/gpsfarmguide/import_fields/imports/ImportFieldsActivity;)V

    invoke-virtual {v0, v1}, Landroidx/appcompat/widget/SearchView;->setOnQueryTextListener(Landroidx/appcompat/widget/SearchView$OnQueryTextListener;)V

    .line 135
    invoke-super {p0, p1}, Landroid/app/Activity;->onCreateOptionsMenu(Landroid/view/Menu;)Z

    move-result p1

    return p1

    .line 121
    :cond_0
    new-instance p1, Lkotlin/TypeCastException;

    const-string v0, "null cannot be cast to non-null type androidx.appcompat.widget.SearchView"

    invoke-direct {p1, v0}, Lkotlin/TypeCastException;-><init>(Ljava/lang/String;)V

    throw p1
.end method

.method protected onDestroy()V
    .locals 1

    .line 165
    invoke-super {p0}, Landroidx/appcompat/app/AppCompatActivity;->onDestroy()V

    .line 166
    iget-object v0, p0, Llt/noframe/gpsfarmguide/import_fields/imports/ImportFieldsActivity;->mPresenter:Llt/noframe/gpsfarmguide/import_fields/imports/ImportFieldsPresenter;

    if-eqz v0, :cond_0

    invoke-virtual {v0}, Llt/noframe/gpsfarmguide/import_fields/imports/ImportFieldsPresenter;->onDestroy()V

    return-void

    :cond_0
    const-string v0, "mPresenter"

    invoke-static {v0}, Lkotlin/jvm/internal/Intrinsics;->throwUninitializedPropertyAccessException(Ljava/lang/String;)V

    const/4 v0, 0x0

    throw v0
.end method

.method public onOptionsItemSelected(Landroid/view/MenuItem;)Z
    .locals 4

    const-string v0, "item"

    invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V

    .line 139
    invoke-interface {p1}, Landroid/view/MenuItem;->getItemId()I

    move-result v0

    const v1, 0x102002c

    const/4 v2, 0x0

    const-string v3, "mPresenter"

    if-eq v0, v1, :cond_2

    const v1, 0x7f09006c

    if-eq v0, v1, :cond_0

    goto :goto_0

    .line 145
    :cond_0
    iget-object v0, p0, Llt/noframe/gpsfarmguide/import_fields/imports/ImportFieldsActivity;->mPresenter:Llt/noframe/gpsfarmguide/import_fields/imports/ImportFieldsPresenter;

    if-eqz v0, :cond_1

    invoke-virtual {v0}, Llt/noframe/gpsfarmguide/import_fields/imports/ImportFieldsPresenter;->onSelectAllClicked()V

    goto :goto_0

    :cond_1
    invoke-static {v3}, Lkotlin/jvm/internal/Intrinsics;->throwUninitializedPropertyAccessException(Ljava/lang/String;)V

    throw v2

    .line 141
    :cond_2
    iget-object v0, p0, Llt/noframe/gpsfarmguide/import_fields/imports/ImportFieldsActivity;->mPresenter:Llt/noframe/gpsfarmguide/import_fields/imports/ImportFieldsPresenter;

    if-eqz v0, :cond_3

    invoke-virtual {v0}, Llt/noframe/gpsfarmguide/import_fields/imports/ImportFieldsPresenter;->onCancelClicked()V

    .line 149
    :goto_0
    invoke-super {p0, p1}, Landroid/app/Activity;->onOptionsItemSelected(Landroid/view/MenuItem;)Z

    move-result p1

    return p1

    .line 141
    :cond_3
    invoke-static {v3}, Lkotlin/jvm/internal/Intrinsics;->throwUninitializedPropertyAccessException(Ljava/lang/String;)V

    throw v2
.end method

.method protected onRestoreInstanceState(Landroid/os/Bundle;)V
    .locals 1

    .line 232
    invoke-super {p0, p1}, Landroid/app/Activity;->onRestoreInstanceState(Landroid/os/Bundle;)V

    .line 233
    iget-object v0, p0, Llt/noframe/gpsfarmguide/import_fields/imports/ImportFieldsActivity;->mPresenter:Llt/noframe/gpsfarmguide/import_fields/imports/ImportFieldsPresenter;

    if-eqz v0, :cond_0

    invoke-virtual {v0, p1}, Llt/noframe/gpsfarmguide/import_fields/imports/ImportFieldsPresenter;->onRestoredInstanceState(Landroid/os/Bundle;)V

    return-void

    :cond_0
    const-string p1, "mPresenter"

    invoke-static {p1}, Lkotlin/jvm/internal/Intrinsics;->throwUninitializedPropertyAccessException(Ljava/lang/String;)V

    const/4 p1, 0x0

    throw p1
.end method

.method protected onSaveInstanceState(Landroid/os/Bundle;)V
    .locals 1

    const-string v0, "outState"

    invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V

    .line 237
    invoke-super {p0, p1}, Landroidx/appcompat/app/AppCompatActivity;->onSaveInstanceState(Landroid/os/Bundle;)V

    .line 238
    iget-object v0, p0, Llt/noframe/gpsfarmguide/import_fields/imports/ImportFieldsActivity;->mPresenter:Llt/noframe/gpsfarmguide/import_fields/imports/ImportFieldsPresenter;

    if-eqz v0, :cond_0

    invoke-virtual {v0, p1}, Llt/noframe/gpsfarmguide/import_fields/imports/ImportFieldsPresenter;->onSavedInstanceState(Landroid/os/Bundle;)V

    return-void

    :cond_0
    const-string p1, "mPresenter"

    invoke-static {p1}, Lkotlin/jvm/internal/Intrinsics;->throwUninitializedPropertyAccessException(Ljava/lang/String;)V

    const/4 p1, 0x0

    throw p1
.end method

.method public final setAppbar(Landroid/view/View;)V
    .locals 1

    const-string v0, "<set-?>"

    invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V

    .line 38
    iput-object p1, p0, Llt/noframe/gpsfarmguide/import_fields/imports/ImportFieldsActivity;->appbar:Landroid/view/View;

    return-void
.end method

.method public final setBottomBar(Landroid/view/View;)V
    .locals 1

    const-string v0, "<set-?>"

    invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V

    .line 39
    iput-object p1, p0, Llt/noframe/gpsfarmguide/import_fields/imports/ImportFieldsActivity;->bottomBar:Landroid/view/View;

    return-void
.end method

.method public setEnabledImportButton(Z)V
    .locals 4

    .line 223
    iget-object v0, p0, Llt/noframe/gpsfarmguide/import_fields/imports/ImportFieldsActivity;->mSaveButton:Landroid/widget/TextView;

    const/4 v1, 0x0

    if-eqz v0, :cond_4

    const/4 v2, 0x0

    if-eqz p1, :cond_0

    const/4 p1, 0x0

    goto :goto_0

    :cond_0
    const/16 p1, 0x8

    :goto_0
    invoke-virtual {v0, p1}, Landroid/widget/TextView;->setVisibility(I)V

    .line 224
    iget-object p1, p0, Llt/noframe/gpsfarmguide/import_fields/imports/ImportFieldsActivity;->mRecyclerView:Landroidx/recyclerview/widget/RecyclerView;

    if-eqz p1, :cond_3

    iget-object v0, p0, Llt/noframe/gpsfarmguide/import_fields/imports/ImportFieldsActivity;->appbar:Landroid/view/View;

    if-eqz v0, :cond_2

    invoke-virtual {v0}, Landroid/view/View;->getHeight()I

    move-result v0

    iget-object v3, p0, Llt/noframe/gpsfarmguide/import_fields/imports/ImportFieldsActivity;->bottomBar:Landroid/view/View;

    if-eqz v3, :cond_1

    invoke-virtual {v3}, Landroid/view/View;->getHeight()I

    move-result v1

    invoke-virtual {p1, v2, v0, v2, v1}, Landroid/view/ViewGroup;->setPadding(IIII)V

    return-void

    :cond_1
    const-string p1, "bottomBar"

    invoke-static {p1}, Lkotlin/jvm/internal/Intrinsics;->throwUninitializedPropertyAccessException(Ljava/lang/String;)V

    throw v1

    :cond_2
    const-string p1, "appbar"

    invoke-static {p1}, Lkotlin/jvm/internal/Intrinsics;->throwUninitializedPropertyAccessException(Ljava/lang/String;)V

    throw v1

    :cond_3
    const-string p1, "mRecyclerView"

    invoke-static {p1}, Lkotlin/jvm/internal/Intrinsics;->throwUninitializedPropertyAccessException(Ljava/lang/String;)V

    throw v1

    :cond_4
    const-string p1, "mSaveButton"

    .line 223
    invoke-static {p1}, Lkotlin/jvm/internal/Intrinsics;->throwUninitializedPropertyAccessException(Ljava/lang/String;)V

    throw v1
.end method

.method public final setMRetryLayout(Landroid/view/View;)V
    .locals 1

    const-string v0, "<set-?>"

    invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V

    .line 46
    iput-object p1, p0, Llt/noframe/gpsfarmguide/import_fields/imports/ImportFieldsActivity;->mRetryLayout:Landroid/view/View;

    return-void
.end method

.method public showCancelConfirmationDialog()V
    .locals 3

    .line 194
    new-instance v0, Landroidx/appcompat/app/AlertDialog$Builder;

    invoke-direct {v0, p0}, Landroidx/appcompat/app/AlertDialog$Builder;-><init>(Landroid/content/Context;)V

    const v1, 0x7f110050

    .line 195
    invoke-virtual {p0, v1}, Landroid/app/Activity;->getString(I)Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Landroidx/appcompat/app/AlertDialog$Builder;->setTitle(Ljava/lang/CharSequence;)Landroidx/appcompat/app/AlertDialog$Builder;

    .line 196
    new-instance v1, Llt/noframe/gpsfarmguide/import_fields/imports/ImportFieldsActivity$showCancelConfirmationDialog$1;

    invoke-direct {v1, p0}, Llt/noframe/gpsfarmguide/import_fields/imports/ImportFieldsActivity$showCancelConfirmationDialog$1;-><init>(Llt/noframe/gpsfarmguide/import_fields/imports/ImportFieldsActivity;)V

    const v2, 0x7f11022d

    invoke-virtual {v0, v2, v1}, Landroidx/appcompat/app/AlertDialog$Builder;->setPositiveButton(ILandroid/content/DialogInterface$OnClickListener;)Landroidx/appcompat/app/AlertDialog$Builder;

    .line 200
    sget-object v1, Llt/noframe/gpsfarmguide/import_fields/imports/ImportFieldsActivity$showCancelConfirmationDialog$2;->INSTANCE:Llt/noframe/gpsfarmguide/import_fields/imports/ImportFieldsActivity$showCancelConfirmationDialog$2;

    const v2, 0x7f110155

    invoke-virtual {v0, v2, v1}, Landroidx/appcompat/app/AlertDialog$Builder;->setNegativeButton(ILandroid/content/DialogInterface$OnClickListener;)Landroidx/appcompat/app/AlertDialog$Builder;

    .line 203
    invoke-virtual {v0}, Landroidx/appcompat/app/AlertDialog$Builder;->show()Landroidx/appcompat/app/AlertDialog;

    return-void
.end method

.method public showImportingDialog()V
    .locals 3

    .line 249
    new-instance v0, Llt/noframe/gpsfarmguide/import_fields/ProgressDialog;

    const v1, 0x7f11011f

    invoke-virtual {p0, v1}, Landroid/app/Activity;->getString(I)Ljava/lang/String;

    move-result-object v1

    const-string v2, "getString(R.string.import_in_progress)"

    invoke-static {v1, v2}, Lkotlin/jvm/internal/Intrinsics;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V

    invoke-direct {v0, p0, v1}, Llt/noframe/gpsfarmguide/import_fields/ProgressDialog;-><init>(Landroid/content/Context;Ljava/lang/String;)V

    iput-object v0, p0, Llt/noframe/gpsfarmguide/import_fields/imports/ImportFieldsActivity;->mProgressDialog:Llt/noframe/gpsfarmguide/import_fields/ProgressDialog;

    .line 250
    iget-object v0, p0, Llt/noframe/gpsfarmguide/import_fields/imports/ImportFieldsActivity;->mProgressDialog:Llt/noframe/gpsfarmguide/import_fields/ProgressDialog;

    if-eqz v0, :cond_0

    invoke-virtual {v0}, Llt/noframe/gpsfarmguide/import_fields/ProgressDialog;->showDialog()V

    :cond_0
    return-void
.end method

.method public showSavingDialog()V
    .locals 3

    .line 258
    new-instance v0, Llt/noframe/gpsfarmguide/import_fields/ProgressDialog;

    const v1, 0x7f1100ed

    invoke-virtual {p0, v1}, Landroid/app/Activity;->getString(I)Ljava/lang/String;

    move-result-object v1

    const-string v2, "getString(R.string.fields_saving_to_db)"

    invoke-static {v1, v2}, Lkotlin/jvm/internal/Intrinsics;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V

    invoke-direct {v0, p0, v1}, Llt/noframe/gpsfarmguide/import_fields/ProgressDialog;-><init>(Landroid/content/Context;Ljava/lang/String;)V

    iput-object v0, p0, Llt/noframe/gpsfarmguide/import_fields/imports/ImportFieldsActivity;->mProgressDialog:Llt/noframe/gpsfarmguide/import_fields/ProgressDialog;

    .line 259
    iget-object v0, p0, Llt/noframe/gpsfarmguide/import_fields/imports/ImportFieldsActivity;->mProgressDialog:Llt/noframe/gpsfarmguide/import_fields/ProgressDialog;

    if-eqz v0, :cond_0

    invoke-virtual {v0}, Llt/noframe/gpsfarmguide/import_fields/ProgressDialog;->showDialog()V

    :cond_0
    return-void
.end method

.method public showSelectedFieldsCount(I)V
    .locals 4

    .line 228
    iget-object v0, p0, Llt/noframe/gpsfarmguide/import_fields/imports/ImportFieldsActivity;->mSaveButton:Landroid/widget/TextView;

    if-eqz v0, :cond_0

    const v1, 0x7f11011e

    const/4 v2, 0x1

    new-array v2, v2, [Ljava/lang/Object;

    const/4 v3, 0x0

    invoke-static {p1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object p1

    aput-object p1, v2, v3

    invoke-virtual {p0, v1, v2}, Landroid/app/Activity;->getString(I[Ljava/lang/Object;)Ljava/lang/String;

    move-result-object p1

    invoke-virtual {v0, p1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    return-void

    :cond_0
    const-string p1, "mSaveButton"

    invoke-static {p1}, Lkotlin/jvm/internal/Intrinsics;->throwUninitializedPropertyAccessException(Ljava/lang/String;)V

    const/4 p1, 0x0

    throw p1
.end method

.method public showTryAgainWithError(Ljava/lang/Throwable;)V
    .locals 3

    const-string v0, "error"

    invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V

    .line 174
    iget-object v0, p0, Llt/noframe/gpsfarmguide/import_fields/imports/ImportFieldsActivity;->mRetryLayout:Landroid/view/View;

    const/4 v1, 0x0

    if-eqz v0, :cond_5

    const/4 v2, 0x0

    invoke-virtual {v0, v2}, Landroid/view/View;->setVisibility(I)V

    .line 175
    iget-object v0, p0, Llt/noframe/gpsfarmguide/import_fields/imports/ImportFieldsActivity;->mErrorText:Landroid/widget/TextView;

    if-eqz v0, :cond_4

    .line 176
    instance-of v1, p1, Ljava/net/UnknownHostException;

    if-eqz v1, :cond_0

    const p1, 0x7f11011d

    invoke-virtual {p0, p1}, Landroid/app/Activity;->getString(I)Ljava/lang/String;

    move-result-object p1

    goto :goto_0

    .line 177
    :cond_0
    instance-of v1, p1, Llt/noframe/gpsfarmguide/import_fields/geoconvert/exceptions/NotSupportedFileFormatException;

    if-eqz v1, :cond_1

    const p1, 0x7f110121

    invoke-virtual {p0, p1}, Landroid/app/Activity;->getString(I)Ljava/lang/String;

    move-result-object p1

    goto :goto_0

    .line 178
    :cond_1
    instance-of v1, p1, Llt/noframe/gpsfarmguide/import_fields/geoconvert/exceptions/UnprocessableFileException;

    if-eqz v1, :cond_2

    const p1, 0x7f110122

    invoke-virtual {p0, p1}, Landroid/app/Activity;->getString(I)Ljava/lang/String;

    move-result-object p1

    goto :goto_0

    .line 179
    :cond_2
    instance-of v1, p1, Ljava/io/IOException;

    if-eqz v1, :cond_3

    const p1, 0x7f1100cc

    invoke-virtual {p0, p1}, Landroid/app/Activity;->getString(I)Ljava/lang/String;

    move-result-object p1

    goto :goto_0

    .line 180
    :cond_3
    new-instance v1, Ljava/lang/StringBuilder;

    invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V

    const v2, 0x7f1100c9

    invoke-virtual {p0, v2}, Landroid/app/Activity;->getString(I)Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    const-string v2, " "

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {p1}, Ljava/lang/Throwable;->getMessage()Ljava/lang/String;

    move-result-object p1

    invoke-virtual {v1, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object p1

    .line 175
    :goto_0
    invoke-virtual {v0, p1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    return-void

    :cond_4
    const-string p1, "mErrorText"

    invoke-static {p1}, Lkotlin/jvm/internal/Intrinsics;->throwUninitializedPropertyAccessException(Ljava/lang/String;)V

    throw v1

    :cond_5
    const-string p1, "mRetryLayout"

    .line 174
    invoke-static {p1}, Lkotlin/jvm/internal/Intrinsics;->throwUninitializedPropertyAccessException(Ljava/lang/String;)V

    throw v1
.end method

.method public switchSelectAll()V
    .locals 4

    .line 211
    iget-object v0, p0, Llt/noframe/gpsfarmguide/import_fields/imports/ImportFieldsActivity;->mFieldsAdapter:Llt/noframe/gpsfarmguide/import_fields/imports/ImportFieldsRecyclerAdapter;

    const/4 v1, 0x0

    const-string v2, "mFieldsAdapter"

    if-eqz v0, :cond_4

    invoke-virtual {v0}, Llt/noframe/gpsfarmguide/import_fields/imports/ImportFieldsRecyclerAdapter;->getSelectedItemsCount()I

    move-result v0

    iget-object v3, p0, Llt/noframe/gpsfarmguide/import_fields/imports/ImportFieldsActivity;->mFieldsAdapter:Llt/noframe/gpsfarmguide/import_fields/imports/ImportFieldsRecyclerAdapter;

    if-eqz v3, :cond_3

    invoke-virtual {v3}, Llt/noframe/gpsfarmguide/utils/RecyclerHeadlessAdapter;->getMainItemsCount()I

    move-result v3

    if-eq v0, v3, :cond_1

    .line 212
    iget-object v0, p0, Llt/noframe/gpsfarmguide/import_fields/imports/ImportFieldsActivity;->mFieldsAdapter:Llt/noframe/gpsfarmguide/import_fields/imports/ImportFieldsRecyclerAdapter;

    if-eqz v0, :cond_0

    invoke-virtual {v0}, Llt/noframe/gpsfarmguide/import_fields/imports/ImportFieldsRecyclerAdapter;->selectAllItems()V

    goto :goto_0

    :cond_0
    invoke-static {v2}, Lkotlin/jvm/internal/Intrinsics;->throwUninitializedPropertyAccessException(Ljava/lang/String;)V

    throw v1

    .line 214
    :cond_1
    iget-object v0, p0, Llt/noframe/gpsfarmguide/import_fields/imports/ImportFieldsActivity;->mFieldsAdapter:Llt/noframe/gpsfarmguide/import_fields/imports/ImportFieldsRecyclerAdapter;

    if-eqz v0, :cond_2

    invoke-virtual {v0}, Llt/noframe/gpsfarmguide/import_fields/imports/ImportFieldsRecyclerAdapter;->selectNone()V

    :goto_0
    return-void

    :cond_2
    invoke-static {v2}, Lkotlin/jvm/internal/Intrinsics;->throwUninitializedPropertyAccessException(Ljava/lang/String;)V

    throw v1

    .line 211
    :cond_3
    invoke-static {v2}, Lkotlin/jvm/internal/Intrinsics;->throwUninitializedPropertyAccessException(Ljava/lang/String;)V

    throw v1

    :cond_4
    invoke-static {v2}, Lkotlin/jvm/internal/Intrinsics;->throwUninitializedPropertyAccessException(Ljava/lang/String;)V

    throw v1
.end method
